package net.oschina.archx.spring.mybatis.entity;

import net.oschina.archx.spring.common.entity.BaseEntity;
import net.oschina.archx.spring.mybatis.model.UserExtend;

import java.io.Serializable;

public class User extends BaseEntity<Long> implements Serializable {

    private static final long serialVersionUID = 1256329126206143585L;

    private String username;

    private String password;

    private UserExtend extend;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public UserExtend getExtend() {
        return extend;
    }

    public void setExtend(UserExtend extend) {
        this.extend = extend;
    }
}